﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Data;
using System.ComponentModel;
using System.Windows;

namespace SilverlightDebateViewModel
{
	public class OpinionsViewModel : INotifyPropertyChanged
	{
        public OpinionsViewModel()
		{
			
		}

        // Properties 

        #region VMMainPageViewModel
        private MainPageViewModel _VMMainPageViewModel;
        public MainPageViewModel VMMainPageViewModel
        {
            get { return _VMMainPageViewModel; }
            set
            {
                if (VMMainPageViewModel == value)
                {
                    return;
                }
                _VMMainPageViewModel = value;
                this.NotifyPropertyChanged("VMMainPageViewModel");
            }
        }
        #endregion

        #region Visibility_Opinions
        private Visibility _Visibility_Opinions = Visibility.Collapsed;
        public Visibility Visibility_Opinions
        {
            get { return _Visibility_Opinions; }
            set
            {
                if (Visibility_Opinions == value)
                {
                    return;
                }
                _Visibility_Opinions = value;
                this.NotifyPropertyChanged("Visibility_Opinions");
            }
        }
        #endregion

		#region INotifyPropertyChanged
		public event PropertyChangedEventHandler PropertyChanged;

		private void NotifyPropertyChanged(String info)
		{
			if (PropertyChanged != null)
			{
				PropertyChanged(this, new PropertyChangedEventArgs(info));
			}
		}
		#endregion
	}
}